package com.fir.my.batis.plus;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


/**
 * @author fir
 */
@MapperScan(basePackages = "com.fir.my.batis.plus.**.mapper")
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
@Configuration
@EnableWebMvc
//@EnableSwagger2
@EnableScheduling
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        System.out.println("启动成功！~~~~~~~~~~~~~~~~~~~~~");
    }

}
